package com.shigu.user.bo;

import com.shigu.MallRequest;
import com.shigu.annotations.PhoneCheck;
import com.shigu.validation.tags.Telephone;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class ModPwdRequest extends MallRequest {

    @PhoneCheck
    private String telephone;

    @NotBlank(message = "密码不能为空")
    @Length(min = 6, message = "密码长度不能小于6位")
    private String newPassword;

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
